package org.springblade.modules.notice.core.event;

import org.springblade.common.utils.message.domain.SendRequest;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

/**
 * @Author ysq
 * @Date 2025/02/27
 * @Description 消息通知回调事件
 */
public class CallbackEvent extends ApplicationEvent {

    private final SendRequest sendRequest;
    private final Map<String, Object> callbackData;

    public CallbackEvent(Object source, SendRequest sendRequest, Map<String, Object> callbackData) {
        super(source);
        this.sendRequest = sendRequest;
        this.callbackData = callbackData;
    }

    public SendRequest getSendRequest() {
        return sendRequest;
    }

    public Map<String, Object> getCallbackData() {
        return callbackData;
    }
}
